function e = promError(X, wf, b)

    acum = 0;
    for t = 1:length(X(1, :))
        errori = b(t) - valPattern(wf, X(:,t));
        errori = abs(errori);
        acum = acum + sum(errori);
    end
    
    e = acum/length(X(1, :));
end

